//
//  SecondViewController.m
//  UI07_HomeWork
//
//  Created by Bodi on 16/6/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondViewController.h"
#import "PictureView.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createPicture];
    // Do any additional setup after loading the view.
}
- (void)createPicture{
    
    
    
    
    PictureView *picture = [[PictureView alloc]initWithFrame:CGRectMake(0, 0, 300, 400)];
    picture.backgroundColor = [UIColor grayColor];
    picture.center = self.view.center;
    [self.view addSubview:picture];
    [picture release];
    
    /*创建图片数组**/
    
    UIImage *image1 = [UIImage imageNamed:@"1.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"2.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"3.jpg"];
    UIImage *image4 = [UIImage imageNamed:@"4.jpg"];
    UIImage *image5 = [UIImage imageNamed:@"5.jpg"];
    UIImage *image6 = [UIImage imageNamed:@"6.jpg"];
    picture.imageArray = @[image6,image1, image2, image3, image4, image5, image6, image1];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
